// ==UserScript==
// @name           AutoLogin to Wiki
// @namespace      oasis.mitra.com
// @description    Automatically login to the wiki area
// @include        http://wiki.healthcare.agfa.net*
// ==/UserScript==
var logIn = document.getElementById('loginButton');
if( logIn != null )
{
    logIn.click();
}
else
{
    var links = document.links;
    for(var i = 0; i < links.length; i++) 
    {
	if( links[i].href.indexOf("login.action?") >= 0 )
	{
		window.location.href = links[i];
		break;
	}
    }
}